{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Included Stop words" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from stemgraphic.stopwords import EN, FR, ES, ALT_EN" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Very short list of English stop words" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "27" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "len(ALT_EN)" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "['a', 'am', 'an', 'and', 'are', 'as', 'at', 'been', 'for', 'from', 'in', 'is', 'of', 'on', 'or', 'out', 'so', 'such', 'that', 'the', 'these', 'this', 'those', 'to', 'upon', 'was', 'were']\n" ] } ], "source": [ "print(ALT_EN)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The French and Spanish stop words are quite similar, but Spanish has several gender specific words (i.e. quelque vs. algun, algunos, algunas) so it is larger." ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "127" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "len(FR)" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "183" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "len(ES)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The main English stop word list is significantly larger." ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "316" ] }, "execution_count": 6, "metadata": {}, "output_type": "execute_result" } ], "source": [ "len(EN)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.3" } }, "nbformat": 4, "nbformat_minor": 2 }